ba19d53b1158e02336fc8e64addc5c0492f650e0,src/com/paypal/core/CertificateCredential.java,CertificateCredential,validate,#,38

Before Change


	}
	
	public void validate() throws MissingCredentialException {
		if (getUserName() == null || getUserName() == "") {
			throw new MissingCredentialException("username can't be empty");
		}
		if (this.certificatePath == null || this.certificatePath == "") {
			throw new MissingCredentialException("certificatePath can't be empty");
		}
		if (this.certificateKey == null || this.certificateKey == "") {
			throw new MissingCredentialException(
					"certificateKey can't be empty");
		}
		if (getPassword() == null || getPassword() == "") {
			throw new MissingCredentialException("password can't be empty");
		}
		if (getApplicationId() == null || getApplicationId() == "") {
			throw new MissingCredentialException("applicationId can't be empty");
		}
	}

After Change


	}

	public void validate() throws MissingCredentialException {
		if (getUserName() == null || getUserName().length() == 0) {
			throw new MissingCredentialException("username can't be empty");
		}
		if (this.certificatePath == null || this.certificatePath.length() == 0) {
			throw new MissingCredentialException(
					"certificatePath can't be empty");
		}
		if (this.certificateKey == null || this.certificateKey.length() == 0) {
			throw new MissingCredentialException(
					"certificateKey can't be empty");
		}
		if (getPassword() == null || getPassword().length() == 0) {
			throw new MissingCredentialException("password can't be empty");
		}
		if (getApplicationId() == null || getApplicationId().length() == 0) {
			throw new MissingCredentialException("applicationId can't be empty");
		}
	}